<?php

class viewhelper_transformCountry
{
	// The Singleton-Method
	public function transform($id){
		$db = Zend_Db_Table::getDefaultAdapter();
		$entry = new Zend_Db_Select($db);
		$entry->from('country');
		$entry->where('country.id = ?', $id);
		$entry =  $entry->query()->fetch();
		return $entry['name'];
	}
}
?>